package com.donger.boms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.donger.boms.entity.Product;
import org.springframework.web.multipart.MultipartFile;

import java.io.OutputStream;

public interface ProductService extends IService<Product> {
    /**
     * 上传文件
     * @param file
     * @return
     */
    boolean upload(MultipartFile file);

    /**
     * 分页查询
     * @param page
     * @param product
     * @return
     */
    IPage<Product> pageList(Page<Product> page, Product product);

    /**
     * 下载模板
     * @param outputStream
     */
    void exportExcel(OutputStream outputStream);
}
